package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantCertification;
import com.nbsaas.boot.merchant.api.domain.request.MerchantCertificationRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 商家认证请求对象转换成实体对象
*/

public class MerchantCertificationEntityConvert  implements Converter<MerchantCertification, MerchantCertificationRequest> {

    @Override
    public MerchantCertification convert(MerchantCertificationRequest source) {
        MerchantCertification result = new MerchantCertification();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

